# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

DESCRIPTION="Cross platform library for generating PDF written in ANSI-C."
HOMEPAGE="http://libharu.sourceforge.net/"
MYP="${PN}_${PV//./_}"
SRC_URI="mirror://sourceforge/libharu/${MYP}.tgz"

LICENSE="zlib"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc"

DEPEND=""
RDEPEND=""

src_compile() {
	./configure --prefix=/usr --shared || die "configure failed."
	emake || die "make failed."
}

src_install() {
	make PREFIX=${D}usr install || die "install failed."
	cp include/*.h ${D}usr/include || die "copying headers failed."
	use doc && mv doc/* ${D}usr/share/doc/${P}
}
